<nz-spin [nzSpinning]="isSpinning" [nzTip]="'正在初始化模块信息...'">
    <section class="in-index">
        <div class="table-operations" style="margin: 16px 0;padding: 0 2%">
            <button style="background: #ef4954;color: #fff;" nz-button (click)="classadd('add')">
              <i class="anticon anticon-plus"></i>
              <span>新增</span>
            </button>
            <button nz-button (click)="getteacherstudent()" [nzLoading]="loadingData">
              <i class="anticon anticon-reload"></i>
              <span>刷新</span>
            </button>
          </div>
      <div class="table-bg" style="width: 100%;display:flex;align-items: center;justify-content: flex-start;width: 96% !important;margin: 0 auto;border-radius:4px !important;">
          <nz-input-group style="width: 200px;" (keydown)="classsearchinput($event)" nzSuffixIcon="anticon anticon-search">
            <input [(ngModel)]="nameph" type="text" nz-input placeholder="用户名、电话">
          </nz-input-group>
      </div>



      <nz-table
      [nzLoading]="loadingData" [nzFrontPagination]="false"
      [nzTotal]="listEntities.recordTotalCount" [(nzPageIndex)]="listEntities.currentPageIndex" (nzPageIndexChange)="getEntityListAsync(true)"
      [(nzPageSize)]="listEntities.pageSize"
      #nzTable #nzFixedHeader nzBordered
      #rowSelectionTable
      [nzData]="listEntities.entities"
      >
        <thead nz-thead>
          <tr>
            <th style="text-align: center;">
              <span>用户名</span>
            </th>
            <th style="text-align: center;">
              <span>姓名</span>
            </th>
            <th style="text-align: center;">
              <span>学号</span>
            </th>
            <th style="text-align: center;">
                <span>电话</span>
            </th>
            <th style="text-align: center;">
                <span>班级</span>
            </th>
            <th nz-th style="text-align: center;">操作</th>
          </tr>
        </thead>
        <tbody nz-tbody style="text-align: center;">
          <tr nz-tbody-tr *ngFor="let data of rowSelectionTable.data">
            <td nz-td>
              <span>{{data.userName}}</span>
            </td>
            <td nz-td>
              <span>{{data.personName}}</span>
            </td>
            <td nz-td>
              <span>{{data.personNo}}</span>
            </td>
            <td nz-td>
              <span>{{data.phoneNumber}}</span>
            </td>
            <td nz-td>
              <span>{{data.className}}</span>
            </td>
            <td nz-td>
              <a (click)="ngpassword(data.id)">
                <i class="anticon anticon-edit"></i>密码重置</a>
              <a (click)="studentmanage(data.id)">
                <i class="anticon anticon-edit"></i>编辑</a>
                <a (click)="studentdel(data.id,data.userName)">
                    <i class="anticon anticon-edit"></i>删除学生</a>

            </td>
          </tr>
        </tbody>
      </nz-table>
      <nz-modal [(nzVisible)]="isVisiblemm" nzTitle="重置密码" (nzOnCancel)="handleCancel()" (nzOnOk)="handleOkmm('success')">
          <nz-form-item >
              <nz-form-label [nzSpan]="6" nzFor="noticeContent111">新密码</nz-form-label>
              <nz-form-control [nzSpan]="14">
                  <input placeholder="请填写密码"  type="text" style="width: 260px" nz-input [(ngModel)]="repassword"/> <span style="color: red">*</span>
              </nz-form-control>
          </nz-form-item >
      </nz-modal>
      <nz-modal [(nzVisible)]="smisVisible" nzTitle="确定要删除吗？" (nzOnCancel)="handleCancel()" (nzOnOk)="handleOksm('success')">
          <p>已选中用户名为{{username}}</p>
        </nz-modal>
       
    </section>

  </nz-spin>
